<template>
  <div>
    <h2>404 页面找不到  {{ pathname }} </h2>
  </div>
</template>

<script>
export default {
  created() {
    // this.$route 是代表当前路由信息
    console.log(this.$route);
    this.pathname = this.$route.path
  },
  data() {
    return {
      pathname: ''
    }
  }
}
</script>